****************************************
* Table B10: Hurricane Proximity and Democrat Vote Share: Alternative Specifications
******************************************

preserve
use "$input/prec-altspec-hur", clear
xtset group

qui xtreg demosenshare_total treatment308080150 i.year i.stateid, fe cl(group)
outreg2 using "$output/tabb10.doc", keep (treatment308080150) replace dec(3)

qui xtreg demohouseshare_total treatment308080150 i.year i.stateid, fe cl(group)
outreg2 using "$output/tabb10.doc", keep (treatment308080150) append dec(3)    


bysort group: gen lead = treatment308080150[_n+1]

qui xtreg demosenshare_total treatment308080150 lead i.year i.stateid##c.year, fe cl(group)
outreg2 using "$output/tabb10.doc", keep (treatment308080150 lead) append dec(3)    
qui xtreg demohouseshare_total treatment308080150 lead i.year i.stateid##c.year, fe cl(group)
outreg2 using "$output/tabb10.doc", keep (treatment308080150 lead)  dec(3)    append tex

restore
